export const toast = (title, duration = 2000) => {
    uni.showToast({
        title,
        duration,
        icon: 'none'
    })
}

export const phoneNumber = (phone) => {
    uni.makePhoneCall({
        phoneNumber: phone
    })
}

export const copy = (text) => {
    uni.setClipboardData({
        data: text
    })
}

export const openLocation = (latitude, longitude, name, address) => {
    uni.openLocation({
        latitude,
        longitude,
        name,
        address
    })
}

